FROM java:8
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  && echo 'Asia/Shanghai' >/etc/timezone
ADD ${JAR_FILE} /
ADD ./run.sh /
ENV JAVA_OPTS=""
RUN chmod +x /run.sh
ENTRYPOINT [ "sh", "-c", "/run.sh" ]